<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        <div class="layui-row">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input searchVal" placeholder="请输入登录账号或用户名称" id="keyword"/>
                    </div>
                </div>
                <@shiro.hasPermission name="core/user/index:query">
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm" id="btnQuery" type="button">
                        <i class="layui-icon layui-icon-search"></i>查询
                    </button>
                </div>
                </@shiro.hasPermission>
                <@shiro.hasPermission name="core/user/index:add">
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" id="btnAddPage">
                        <i class="layui-icon layui-icon-add-circle"></i>添加
                    </button>
                </div>
                </@shiro.hasPermission>
            </div>
        </div>
    </form>
    <table id="dataList" lay-filter="dataList"></table>
</blockquote>
<div id="resetPwdTpl" style="display: none">
    <div class="layui-card-body">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                    <input type="password" class="layui-input" name="password" lay-verType="tips"
                           placeholder="请输入密码">
                </div>
            </div>
        </form>
    </div>
</div>
<script id="opTpl" type="text/html">
    <@shiro.hasPermission name="core/user/index:update">
    <a class="layui-btn layui-btn-sm" lay-event="edit" lay-tips="编辑用户"><i class="layui-icon layui-icon-edit"></i></a>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="core/user/index:resetPwd">
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="resetPwd" lay-tips="重置密码"><i
            class="layui-icon layui-icon-refresh"></i></a>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="core/user/index:delete">
    <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del" lay-tips="删除用户"><i
            class="layui-icon layui-icon-delete"></i></a>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="core/user/index:addUserRole">
    <a class="layui-btn layui-btn-sm layui-btn-warm" lay-event="setRole" lay-tips="设置角色"><i
            class="layui-icon layui-icon-set-fill"></i></a>
    </@shiro.hasPermission>
</script>
<script>
    var fn = {};
    layui.config({
        base: '/static/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'core/user']);
</script>